" ==== lightline 配置文件 ====
"
" Author: Asura/Lover_HZ
" Data: 2020/10/07
" Version: 1.0
"
" =========================

" ==== lightline全局设定 ====
let g:lightline = {}

let g:lightline.colorscheme = 'darcula'

" ==== 设置分隔符 ====
let g:lightline.separator = {'left': '', 'right': ''}
let g:lightline.subseparator = {'left': '', 'right': ''}

" ==== 设置 tabline 显示 ====
" let g:lightline.tabline = {'left': [ ['buffers'] ], 'right': [ ['close'] ]}
let g:lightline.tab = {
		    \ 'active': [ 'tabnum', 'filetype', 'filename', 'modified' ],
		    \ 'inactive': [ 'tabnum', 'filetype', 'filename', 'modified' ] }



" ==== 添加 lightline 组件 ====
let g:lightline.component_expand = {
\    'buffers': 'lightline#bufferline#buffers'
\}

" ==== 设置 组件类型 ====
let g:lightline.component_type = {
\   'buffers': 'tabsel'
\}

" ==== bufferline 设置 ====

" 是否显示编号
" 0 无编号
" 1 使用:ls中的编号>>buffer编号
" 2 使用 1－n 的序号
" 3 buffer编号和序号彼此相邻
" 4 同上，并且序号显示在buffer编号之前
let g:lightline#bufferline#show_number = 2

" 是否使用短路径
let g:lightline#bufferline#shorten_path = 0

" 未命名文件
let g:lightline#bufferline#unnamed = '[No Name]'

" 是否使用 nerdfont
let g:lightline#bufferline#enabled_nerdfont = 0

" 是否使用 devicons
let g:lightline#bufferline#enable_devicons = 1

" 是否开启 unicode , 开启后会将 + 替换成 铅笔图标
let g:lightline#bufferline#unicode_symbols = 0


